<!--
 * @Description: 工单详情
 * @Author: charles
 * @Date: 2021-12-14 22:10:42
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-12-22 17:08:31
-->
<template>
  <div class="workorder_details">
    <el-button type="text" size="small" @click="backhandler">返回</el-button>
    <div class="workorder">
      <h3>工单详情</h3>
       <el-form label-width="100" size="small">
        <el-form-item label="工程名称"> {{workorder.engineer_name}} </el-form-item>
        <el-form-item label="设备名称"> {{workorder.device_name}} </el-form-item>
         <el-form-item label="工单类型"> {{workorder.type}} </el-form-item>
          <el-form-item label="提交时间"> {{workorder.create_time}} </el-form-item>
        <el-form-item label="状态"> {{workorder.status}} 
        </el-form-item>
      </el-form>
    </div>  
  </div>
</template>
<script>
import {get} from '@/utils/request'
export default {
  data(){
    return {
      workorder:{},
      type:{},
    }
  },
  mounted() {
    this.workorder = this.$route.query;
  },
  methods:{
    backhandler(){
      this.$router.go(-1);
    }
  }
}
</script>
<style scoped>
.workorder_details .workorder .label{
  font-weight: bold;
  padding-right: 5px;
  line-height: 2.4em;
}
</style>